package marina;

public class J12Stock {
//Stock 클래스 만들기
	public static void main(String[] args) {
		Stock test1 = new Stock();
		test1.previousClosingPrice = 1000000;
		test1.currentPrice = 750000;
		System.out.println(test1.getChangePercent());
	}

}

class Stock {
	String sname;
	int previousClosingPrice;
	int currentPrice;
	
	public double getChangePercent(){
		return ((double)currentPrice - 0) / (double)previousClosingPrice;
	}
}